const path = require('path')
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')


module.exports = {
	mode: 'production',
    entry: path.resolve(__dirname, './src/main.js'),
    plugins: [
		// 清除dist文件夹,好像并没有什么效果
		new CleanWebpackPlugin(),
		new HtmlWebpackPlugin({
			title: 'Output Management'
		}),
	]
};